<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta name="layout" content="main"/>
    <title>Account - Edit Password</title>
  </head>
  <body>
    <div id="contentText">
      <h2><span>Account</span>Reset Password</h2>
    </div>

    <div id="wrap90">
      <s2ui:form width='100%' height='250' elementId='resetPasswordFormContainer'
                 titleCode='spring.security.ui.resetPassword.header' center='true'>

        <g:form controller="register" action='resetPassword' name='resetPasswordForm' autocomplete='off'>
          <g:hiddenField name='t' value='${token}'/>

          <div class="sign-in">

            <br/>
            <h4><g:message code='spring.security.ui.resetPassword.description'/></h4>

            <table>
              <s2ui:passwordFieldRow name='password' labelCode='resetPasswordCommand.password.label' bean="${command}"
                                     labelCodeDefault='Password' value="${command?.password}"/>

              <s2ui:passwordFieldRow name='password2' labelCode='resetPasswordCommand.password2.label' bean="${command}"
                                     labelCodeDefault='Password (again)' value="${command?.password2}"/>
            </table>

            <s2ui:submitButton elementId='reset' form='resetPasswordForm' messageCode='spring.security.ui.resetPassword.submit'/>

          </div>
        </g:form>
      </s2ui:form>
    </div>


  </body>
</html>

